const express = require('express');
const ejs = require('ejs');
const loginRouter = require('./router/loginRouter');

let app = express();

app.use(express.urlencoded({extended:false}));
app.use(express.json());

// 配置模板引擎
app.set('views','./views');
app.set('view engine','ejs');

app.use('/login',loginRouter);
app.use(express.static('./static'));

app.listen(10036,()=>console.log('server start'));